package ronin.actor2d;

/**
 * StaticActor is a single image actor that can be animated and used like any other
 * actor in the engine.Good for static objects in game.
 */
public class SmartStaticActor extends SmartActor {
    
    /**
     * Takes an StaticActorGroup object, and sets up the frame based on the sent ActorGroup2D.
     * 
     * @param grp the Actor belongs to.
     */
    public SmartStaticActor(ActorGroup2D grp) {
		super(grp);
	
		// just reference the 0th (and only) animation strip
		currAnimation = group.getAnimationStrip(0);
	
		frameWidth = currAnimation.getFrameWidth();
		frameHeight = currAnimation.getFrameHeight();
    }

} // StaticActor
